home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Subviews.2 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Subviews
  2. Sent:        6/3/96 6:10 PM
  3. Received:    6/3/96 6:22 PM
  4. From:        John Casey, jcasey@ncs-ssc.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >There are no limit to the number of embedded views in ODF. What Laurent 
  9. >was refering to, I think, is the 'limitation' we have in ODF with 
  10. >scrollers. You can have only one scrolling region in a frame: means you 
  11. >can have only one scroller per frame. If you need to have two views 
  12. >scrolling (not synchronized) you need to have two frames. This is due to 
  13. >the fact that the ODF scroller uses the frame's internal transform, and 
  14. >there is only one internal tranform per frame.
  15.  
  16. We currently have a design that requires three content areas.  Two of 
  17. these areas require scrolling "views"; whereas, the third is a fixed 
  18. "view."  From the previous comments, I assume that I have two options:
  19.  
  20. (1) Create a part for each content area.
  21.  
  22. Unfortunately, our customer has placed memory constraints on our product 
  23. that prohibit us from taking this approach.
  24.  
  25. (2) Let the part create multiple frames at the root level.
  26.  
  27. I have briefly attempted this approach.  If this is a valid approach:
  28.  
  29. (a) How do you get OpenDoc to create multiple default presentation 
  30. frames?  If you can only have one default presentation frame, what method 
  31. do you subclass to get your part to construct the multiple frames upon 
  32. launch of the part?
  33.  
  34. (b) How can you position scrolling frames within the window?  If you call 
  35. SetLocation, ODF barks at you!  Whenever I attempted various methods to 
  36. position the scrolling view at a location other than 0,0 in the Frame 
  37. Layout resource, then I get a various forms of scroller wierdness.
  38.  
  39. Does anyone have an example of using multiple scrolling frames within a 
  40. window?  If not, does anyone have an example of using multiple frames 
  41. within a window with different offsets?
  42.  
  43.  
  44. ========================================================================
  45. John Casey                         email: jcasey@ncs-ssc.com
  46. Vice President                     web:   http://www.ncs-ssc.com
  47. Nation Computer Services           voice: (804) 378-8917
  48.                                    fax:   (601) 689-8130
  49. ========================================================================
  50.